#!/usr/bin/env python 
# -*- coding: utf-8 -*-
# @Time    : 2022/10/12 8:40
# @Author  : Junzhao
# @File    : 彩票.py
# @Software: PyCharm
from random import choice

p = (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 'a', 'b', 'c', 'd', 'e')
a = []
win = []
my = []
times = 0


def a():
    while len(a) < 4:
        pull_item = choice(p)
        if pull_item not in a:
            a.append(pull_item)
        pass
    pass


a()
win = a

while True:

    for i in range(4):
        if win[i] == my[i]:
            continue
        else:
            times += 1
